package com.atguigu.spzx.product.service;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.h5.OrderItem;
import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.product.ProductSku;
import com.atguigu.spyx.model.dto.h5.ProductSkuDto;
import com.atguigu.spyx.model.vo.h5.ProductSkuVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-18-16:39
 */
public interface ProductSkuService {
    PageInfo<ProductSku> page(Integer page, Integer limit, ProductSkuDto productSkuDto);

    ProductSkuVo findSkuById(Long skuId);

    ProductSku findById(Long skuId);

    void updateSalesAndStock(List<OrderItem> orderItems);

}
